import React from 'react';

import { SelectProps, Select } from 'antd';

const ScaleInputBox = ({
  value,
  ...props
}: SelectProps & { value?: [number, number] }): JSX.Element => {
  const showValue = (value || []).join(':');

  return <Select {...props} value={showValue} />;
};

export default ScaleInputBox;
